package com.aaa.doctor.controller.api;


import com.aaa.doctor.service.CheckItemService;
import com.aaa.doctor.vo.MedicinesVo;
import com.aaa.entity.CheckItem;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/doctor/checkitem")
public class CheckItemController {

    @Autowired
    private CheckItemService checkItemService;

    /**
     * 根据条件查询检查信息
     * @param pageCurrent
     * @param pageSize
     * @param medicinesVo
     * @return
     */
    @PostMapping("/listCheckItemForPage/{pageCurrent}/{pageSize}")
    public Result<IPage<CheckItem>> listCheckItemForPage(
            @PathVariable Integer pageCurrent,
            @PathVariable Integer pageSize,
            @RequestBody MedicinesVo medicinesVo){
        return checkItemService.listCheckItemForPage(pageCurrent,pageSize,medicinesVo);
    }

}
